Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODCanvas


HasPlatformCanvas

The HasPlatformCanvas method returns a Boolean value that indicates whether this canvas has or can generate a drawing structure for the specified graphics system.

ODBoolean HasPlatformCanvas (in ODGraphicsSystem g);
g
A 16-bit value specifying the graphics system you want to check for this canvas. Valid graphics systems are platform dependent.
return value
kODTrue if this canvas has or can generate a drawing structure for the specified graphics system, otherwise kODFalse.
DISCUSSION
On the Mac OS platform, the graphics system may be either QuickDraw (kODQuickDraw) or QuickDraw GX (kODQuickDrawGX).

If this canvas has a drawing structure for the specified graphics system, this method returns true.

On the Mac OS platform, if the following conditions are all true, this method returns true because a canvas can generate a QuickDraw GX drawing structure from a QuickDraw window drawing structure:

If this canvas does not have and cannot generate a drawing structure for the specified graphics system, this method returns false.

SEE ALSO
The ODGraphicsSystem type (page 883).
The ODCanvas::GetPlatformCanvas method (page 70).
The ODCanvas::SetPlatformCanvas method (page 79).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help